package com.gcxy.dto;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@Api(value = "圈舍添加数据传输对象")
public class PenAddDTO {
    @ApiModelProperty(value = "牧场id",required=true)
    @NotNull(message = "牧场id不能为空")
    private Integer ranchId;
    @ApiModelProperty(value = "圈舍名称",required=true)
    @NotBlank(message = "圈舍名称不能为空")
    private String penName;
}
